
COMMON_GET_CUR_DIR_NAME(TARGET_NAME)
#=======================================
file(GLOB_RECURSE SRCS *.cpp)


#=======================================
# Add a 'wsf' library target that will be built from the listed sources
add_executable(${TARGET_NAME} ${SRCS}
)

#=======================================
TARGET_LINK_LIBRARIES(${TARGET_NAME}
	gtest::gtest
	gtest::gtest_main
)

IF(UNIX)
find_package(Threads REQUIRED)
TARGET_LINK_LIBRARIES(${TARGET_NAME}
	Threads::Threads
)
ENDIF()

#=======================================
add_test(NAME gtest_app COMMAND gtest_app --gtest_output=xml:AUTOTEST_${TARGET_NAME}.xml)